# http://www.cmake.org/Wiki/CmakeEldk

# this one is important
SET(CMAKE_SYSTEM_NAME			@SYSTEM_NAME@)

# this one not so much
SET(CMAKE_SYSTEM_VERSION		@SYSTEM_VERSION@)

# specify the target CPU
SET(CMAKE_SYSTEM_PROCESSOR		@SYSTEM_PROCESSOR@)

# specify the cross compiler
SET(CMAKE_C_COMPILER			@CC@)
SET(CMAKE_CXX_COMPILER			@CXX@)

# where is the target environment
SET(CMAKE_FIND_ROOT_PATH		@SYSROOT@)

# additional search directories
include_directories(			@INCLUDE_DIRECTORIES@)
link_directories(			@LINK_DIRECTORIES@)

# toolchain wrappers handle the search directories implicitly
LIST(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES	@INCLUDE_DIRECTORIES@)
LIST(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES	@INCLUDE_DIRECTORIES@)
LIST(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES	@LINK_DIRECTORIES@)

# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM	NEVER)

# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY	ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE	ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE	ONLY)
